package o;

import android.content.Intent;
import android.os.Bundle;
import com.huawei.hmf.annotation.ActivityDefine;

public class fjg {
    private fid ˋ;
    private final fjn ˎ;

    public fjg(fid o_fid) {
        this(new Intent());
        this.ˋ = o_fid;
    }

    public fjg(Intent intent) {
        this.ˎ = fjn.ˎ(intent);
    }

    public Intent ˊ() {
        return this.ˎ.ॱ();
    }

    public void ˎ(Object obj) {
        fib o_fib = new fib();
        if (obj != null) {
            this.ˎ.ॱ().putExtra("_protocol", o_fib.ˋ(obj, new Bundle()));
        }
        this.ˎ.ॱ().putExtra("com.huawei.hmf.services.inject.InjectBindingRegistry", o_fib.ˋ(this.ˋ, new Bundle()));
    }

    public void ॱ(fji o_fji) {
        fib o_fib = new fib();
        if (o_fji != null) {
            this.ˎ.ॱ().putExtra("__CallingInfo__", o_fib.ˋ((Object) o_fji, new Bundle()));
        }
    }

    public fji ˋ() {
        Bundle ˋ = this.ˎ.ˋ("__CallingInfo__");
        if (ˋ == null) {
            return null;
        }
        return (fji) new fib().ˏ(ˋ, new fji());
    }

    public <T> T ˎ(ActivityDefine activityDefine) {
        Object o_fjl;
        Bundle ˋ = this.ˎ.ˋ("_protocol");
        if (activityDefine.protocol().isInterface()) {
            o_fjl = new fjl(activityDefine.protocol());
        } else {
            try {
                o_fjl = activityDefine.protocol().newInstance();
            } catch (Exception e) {
                return null;
            }
        }
        new fib().ˏ(ˋ, o_fjl);
        T ॱ = ॱ(o_fjl);
        if (ॱ instanceof fjl) {
            return ((fjl) ॱ).get();
        }
        return ॱ;
    }

    public void ˋ(Class cls) {
        this.ˎ.ॱ().putExtra("__ResultClassname__", cls.getName());
    }

    public String ˏ() {
        return this.ˎ.ˎ("__ResultClassname__");
    }

    private Object ॱ(Object obj) {
        this.ˋ = (fid) new fib().ˏ(this.ˎ.ˋ("com.huawei.hmf.services.inject.InjectBindingRegistry"), new fid());
        return new fih(this.ˋ).ˊ(obj);
    }

    public void ॱ() {
    }
}
